﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using ElectronicCommerce.Framework.Payment.Contract.DataContract.Order;

namespace ElectronicCommerce.Framework.Payment.Contract.DataContract
{
    /// <summary>
    /// 支付请求
    /// </summary>
    [Serializable]
    [DataContract]
    public class ChargeRequest : PaymentRequest
    {
        public ChargeRequest()
            : this("", "")
        {
        }

        public ChargeRequest(string paymentName)
            : this(paymentName, "")
        {
        }

        public ChargeRequest(string paymentName, string gatewayAddress)
            : base(paymentName, gatewayAddress)
        {
            Order = new SalesOrder();
        }

        /// <summary>
        /// 订单信息
        /// </summary>
        [DataMember]
        public SalesOrder Order { get; set; }
    }
}
